package chp05.homework;

public class Home2 {

    public static void main(String[] args) {
        int i = 1;
        int sum = 0;
        while (i <= 50){
            if(i % 7 == 0) {
                System.out.println(i);
                sum += i;
            }
            i++;
        }
        System.out.println("sum="+sum);
    }
}
